using System;
using System.Collections.Generic;

namespace ECCIT
{
    [Serializable()]
	public class PagingParameter
	{
		private bool _allowPaging;
		private int _pageSize;
		private int _currentPageIndex;
        private SortingParameter _sortingParams;
		
		public bool AllowPaging
		{
			get{ return _allowPaging; }
			set{ _allowPaging = value; }
		}

		public int PageSize
		{
			get{ return _pageSize; }
			set{ _pageSize = value; }
		}

		public int CurrentPageIndex
		{
			get{ return _currentPageIndex; }
			set{ _currentPageIndex = value; }
		}

        public SortingParameter SortingParameter
		{
            get { return _sortingParams; }
            set { _sortingParams = value; }
		}

		public PagingParameter(){}

        public PagingParameter(bool allowPaging, int currentPageIndex, int pageSize, SortingParameter sortingParams)
		{
			_allowPaging = allowPaging;
			_currentPageIndex = currentPageIndex;
			_pageSize = pageSize;
            _sortingParams = sortingParams;
		}
	}
}
